package com.zslaa;

import com.zslaa.dao.ArticleMapper;
import com.zslaa.entity.Article;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class test {
    @Autowired
    private ArticleMapper articleMapper;
    @Test
    public void test1(){
        List<Article> articles = articleMapper.selectList(null);
        articles.forEach(System.out::println);
    }
}
